﻿using System;
using System.Configuration;
using CostaRicaPureTravelUtils.CacheHandler.ConfigurationUtils;

namespace CostaRicaPureTravelUtils.CacheHandler.Configuration
{
	[Serializable] 
  public class CachingSection : ConfigurationSection
	{
		[ConfigurationProperty("CachingTimeSpan", IsRequired = true)]
		public TimeSpan CachingTimeSpan 
		{
			get { return (TimeSpan)base["CachingTimeSpan"]; }
			set { base["CachingTimeSpan"] = value; }
		}

		[ConfigurationProperty("FileExtensions", IsDefaultCollection = true, IsRequired = true)]
        public FileExtensionCollection FileExtensions 
		{
            get { return ((FileExtensionCollection)base["FileExtensions"]); }
		}
	}
}
